import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import shopBar from './components/shop_bar.vue'
import productBar from './components/product_bar.vue'
import shopTab from './components/shop_tab.vue'
import shopPage from './components/shop_page.vue'
import { formatDate } from './util/util'
import "@/assets/css/common.css";

// 将 axios 挂载到 Vue 实例上
Vue.prototype.$request = axios
Vue.config.productionTip = false
Vue.prototype.$message = ElementUI.Message;
Vue.component('shopBar',shopBar) // 在全局用Vue.component()方法全局注册
Vue.component('productBar',productBar) // 在全局用Vue.component()方法全局注册
Vue.component('shopTab',shopTab) // 在全局用Vue.component()方法全局注册
Vue.component('shopPage',shopPage) // 在全局用Vue.component()方法全局注册
Vue.use(ElementUI)
Vue.filter('formatDate', formatDate)-
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
